server.close() cancels reconnect attempts.