Add methods to restart the wrapper and check if it's running. Make getProgress synchronized.