fix termination without plugins