Catch InterruptedException in the dungeon and mark the thread as interrupted. See #3006