Invoke callback in startServer