refactored the timestamp validity check
added a wrapper to catch the exceptions that rabbitMQ may rise