attempt to make a exception-safe and exception-neutral stack.