reconnect if connection is already closed