Added ExitStack support to 1.5.1 reader.