fixed Java2DBackend not stopping when invoking stop()