fix kill_and_exit button in notebook