Added error handling to weechat notify script