Fixed crash on close when GPS isn't wokring