ensuring the output is closed in case ANY exception is thrown out of the AbstractWriter