- changed server handling when starting in async mode to handle exception and wait till server is started