adding try catch to send gcm message