catch exception when getting groups without active connection