input handler exit strategy