Cleanup for transitions