Remove duplication in Server, fix rescues

`Process.kill(0, @pid) rescue Errno::ESRCH` will rescue all exceptions
(and then return the class Errno::ESRCH). You need a multiline
begin-rescue-end to rescue only a particular exception.