public run() { try { //thread action ) catch (InterruptedException exception) { //cleanup, if necessary } }