Fixes #11: Remove instancemethod objects before attempting to cache devices.