Close connection on server error

Such as EADDRINUSE.