Close device only if it was opened before (non-zero).
Change io/gps config to use <settings>.
Add timing out of RSSI value.