Modified ThreadHandler::kill() method to return bool