Add removePeriodicSync call in shutdown()

Also add some comments explaining placement of addPeriodicSync/removePeriodicSync calls
Merge pull request #1 from darchons/add-removePeriodicSync-call

Add removePeriodicSync call in shutdown()