add sleep to wait kestrel start