First pass at implementing rescue for servers. Fixes #285