* add sleep 5 seconds to wait for terminating java processes