Added basic network disconnect catching