Take care of closing output via destructor & explicit close() call