Logging and removal fixes

As by mistake I left the removal on setNexusTaskState, that was in case
of canceled and replaced task deleting the _new_ task.