Handle connection closed in reconnect test