Error handling in twitter service