Basic ecxeption handling for server side.