Fix - need to unregister resources from state machine on reload.