Fixed bug in exception handling and logging the count of stored tweet