giving a exit code to switch server quit and stop testing on a failure (fixes #21, fixes #28)