Add some additional bind checks

This prevents the port from getting stuck if the socks connection
dies while waiting for a remote connection