ensuring the output is closed in case ANY exception is thrown out of the AbstractWriter
Merge remote-tracking branch 'origin/master' into develop