adding alerts and error handling for mid-sync disconnects