Fixed #5286 (Add signal/exception handling to cppcheck and cppcheck-gui)