Properly check for write errors in metrics FileEmitter.
Properly check for write errors in metrics FileEmitter.

jsyeo/rubinius,kachick/rubinius,jsyeo/rubinius,jsyeo/rubinius,kachick/rubinius,kachick/rubinius,jsyeo/rubinius,kachick/rubinius,kachick/rubinius,jsyeo/rubinius,kachick/rubinius,jsyeo/rubinius,kachick/rubinius,kachick/rubinius,jsyeo/rubinius