Improve error handling for the pushbullet script