Add exception handler in snipet.
Merge pull request #88 from satoshikumano/managing-push-notification

Add exception handler in snipet.