added close convenience method