Added patch, defining a function as "exit" no longer stops the server.