command line wrapper that runs as a azure startup task;
added some error logging