added support for closing an interaction