added sleep(0.2) in unload loop. trying to prevent java vm exception.