Implemented: stop method for consumer threads. This method blocks until the thread has been properly stopped