terminat modal recursive event