Correct inverted check in error cleanup for openSocket

This could eventaully cause file descriptor exhaustion.

Signed-off-by: Daniel Farina <daniel@heroku.com>