Extracted terminate task for security group into general purpose for simple cloud resources to keep it DRY.