If the last cell declared an incorrect variable (spefific exception), python code executed on the kernel will throw an exception. 