chat connect move to async task, error handling if server not available