Add a print_and_clear_exception function and use it in Value and Listen