Stopping the commit thread