reconnect if connection was failed