Handle server socket errors.

Server no longer quits when an error is thrown.