ceph plugin: close fd on error