exit run loop if die has been signalled to thread
addign jar files and other generated files