OpenFire Resends all the dialogFlow messages on restart to all the users

I am using google dialogflow integration with openfire to integrate a chatbot into our messenger. i have used dialogFlowBot plugin for Openfire which passes the message from openfire to dialogflow if its meant for it.

The problem that i am facing is that whenever i restart openfire server it resends all the messages to all users which have been sent to dialogflow