Bug Fixes

Added a try and catch blocks while calling setAccessToken()