Added shutdown with thread blocking & terminationTimeout for shutting
down the queue after a timeout period.