Stop plugin if cancel was pressed