Relocate sys.exit as suggested by Guido's blog article
Make the station's position update more transactional

Also, I always wanted to put the if and its statement on the same line.