Use domains for error cleanup