Tcp write after connect

Should address #1432
You need to check if the fd is -1. If it is, the user has closed the handle and there is nothing to be done because the write reqs will be called with ECANCELED already.

Also, in case there was no error, if the write queue is empty you need to stop watching for POLLOUT.