preventing some exceptions caused by device disconnects and added reload handling