Avoid clearing interrupt flag when catching InterruptedException
Merge pull request #39 from hertzsprung/interruption

Fix for #36

Great contribution, thanks!