Stop the service, just in case it exists and is running, before trying to set up the class - otherwise files are locked and such.