Handle connection errors in setAdminPort