Runtime error help

my brother was playing his games on the computer for a long time and then it crashed, when I got to the computer it had said that Comodo Firewall (CPF.exe to be exact) had crashed due to a runtime error I panicked and tried to restart the computer yet it started running scandisk on the next boot and said it had deleted several entries due to them being corrupt, why has this happened if it is not meant to be able to be terminated and how can I check what the entries reffered to (so I can see if my programs are affected, in paticular my firewall)