Handle server offline state on application start gracefully
remove unused connect