add support for exit