added `quit_actor` function