embObjMotionControl: fix memory leakage on close.

A wrong delete function was used, now sustituted with checkAndDestroy