Rearranged timing logic, improved messaging when failed to connect to serer