Make net_close() nonblocking and free unestablished connections if no free connections available. From Max Holtzberg