Tag handling thread interruptions in Java