Implemented better alerts for disconnect and reconnect.