Wait for server to finish startup before returning from start function