Detect AT command port

Or have a timeout - if no commands are received for a certain period, assume that the user has “gone away”.

Or require them to re-enter the password periodically…