Added server level error handling.