Limited undo close tab operations to 10. In the future, this needs to be configurable.