reconnect if connection is dead