fixed a bug where CreateActorTask was issued instead of a DestroyActorTask after stop() was called.
fiddled around with generics to clean up the IDE warnings