Added feature to pause and resume a sync process

The event consumer thread is stopped after finishing
the actual event processing