Force application to close on exit so it wont be hanging around in memory...