device removal fixup: close() was not defined