Fixed nonblocking connects and writability checks