use RAII instead of try/catch in sequence_stack.hpp, refs #8882