cleanup
added await so the promise will complete before the server is returned