testExceptionOnCloseOutput

Test segment infos write that hits exception on close. make sure we get our exception back, no file handle leaks, etc.