Fixed bug where inactive parallel states weren't being cleaned up when they were exited due to their parents being exited.