This function aborts the execution if AntiFlood_Checkreturns 0. I don't even know why you use it in the first place, it's only meant for testing functions so you can be sure everything works properly with them.
Since crashdetect fails to report (assuming you already have the latest version, if not; update), debug it manually - more print lines.