Only read GSM module at one place, detect hangup and better handling of a new SMS