add unauthorized exception catch for get_agent call in _get_status_of_device