Restore cwd after starting server