changing the arguments of stopServer by request and changing fatals to panics to that they can be recovered