Raise correct exceptions when encountering error while deleting security group