fileio: use _cleanup_