Fixes #2117 queue.take and queue.poll don't throw interruptedexception

(cherry picked from commit ea1702daffe0b77561d381851be489c4c0aeba5e)
Removed unwanted system.out

(cherry picked from commit bb19209ede9f557c39f9b932c517329a312db727)
Merge pull request #2885 from mdogan/fix/3.2/backport-2132

backport #2132 to maintenance