for objects that don't extend Lockable, like ModelMetrics, catch ClassCastException and remove with DKV.remove() method