Check thread interrupted status while training