added reconnect to close handler