Making the server more error-proof.