Fix exception handling.
Apply Server interface.