Added some basic kernel-mode exception handling