Here I just moved the return statement to the right place to make sure we exit immediately in case of interrupt. But in the same place there is another related issue posted some time ago https://issues.jboss.org/browse/ISPN-2477 What could I do for it? Try shutdownNow?