Prevent scheduled notifications and network state changes to notify when service is stopped.