mwipe v4.0.1: added logic to preven ssh hangs after remote shutdowns