An error can cause the server to close, in which case we need to bind to the port again