add limit for (collision handling) steps to avoid runaway memory consumption 

this isn't a 100% solution, if you overload server on purpose it will still be unresponsive. But any random load spike will be handled gracefully.