call ERR_clear_error after each https session close