fixed handlerTerminateInstance in motoradapter