Workaround for classloader issues with service loading

Changes the classloader parameter to the Engine from the current thread to the task classloader