Add pom.xml
Check thread interrupted status while training