am bae1162c: am ad0d97c7: Perform an orderly shutdown if possible, force disconnect if necessary

* commit 'bae1162c506b7356bd2486331e5eb1425071a75a':
  Perform an orderly shutdown if possible, force disconnect if necessary