Fix bug: reconnecting may be stopped by another reconnecting, see force_close and graceful_close for more details.