improved error handling for posts to twitter