c/shared-libs: Remove call to close on unopened handle

Signed-off-by: Niels Thykier <niels@thykier.net>
coll/*: Use autodie and check calls to touch_file

Signed-off-by: Niels Thykier <niels@thykier.net>