Add notify_end for bot debugging