dpkg-mergechangelogs: fail if it cannot close the output file
Made dpkg-mergechangelogs check the return value of close and fail
if it was not successful. Previously dpkg-mergechangelogs would
silently fail to write a file if (e.g.) the device was full.
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>