Suppress ``IOError`` when closing the temporary file used for capturing streams in Python 2.7.