Interrupting thread using thread.interrupt