App crash if you change secret key 

Added a try/catch to prevent app crashing