Correct way to close interface before calling #exec