can probably remove the printStackTrace, but would be best even here to call Thread.currentThread.interrupt()