Cleaning runtime before signaling animation is done

this helps with the sidebar splitting issues.