I am thinking that it shouldn't return from the process until the server has really finished its startup and can accept connections.