Updated shutdown flow after learning stuff in Bullet tutorial.