Closing the OutputStream has only to be done once in finally.