Change mode Cancels notified polls and running location collection
Abort running network operations on mode change of param flush
Fix NullPointerException, and pending polls not being cleared
Merge pull request #147 from daydreaming-experiment/feature/issue-138-mode-change-cancel-pendings

Feature/issue 138 mode change cancel pendings