Should not open the stream and should stop listing the files if user tries to stop the consumer

Close the consumer as fast as possible in case of user trying to close the consumer