Added support for closing open devices through ohmd_close_device().