If you mean hyperspace, if I am correct, the thrusters (they're objects if you didn't know, they are located in the ships folder, which is located inside the objects folder) have a Lua script that activates their hyperspace animations when the ship enters hyperspace, you could maybe look in there. Regarding quiting the game, I have no idea sadly. What are you trying to accomplish, I could find a easier solution for you?