closes session after output of captcha