When the security group the rule belongs to does not exist and the state is absent, the module is not properly exited, leading to a playbook execution failure. Fixes issue #50057 (cherry picked from commit 4951e5a5b7)
4951e5a5b7