Generic method to avoid server crash.

makes sense.