Added error handling for refused connections.