title: Scheduled Webjob "hangs" on completion and fails to terminate by itself
body: <p>I have a web job that is successfully scheduled and running every 2 hours as I want it to.  Unfortunately it never completely terminates when it has finished running, just seems to hang there after the last statement in the code is executed.  Then after a while I get the following exception:-</p>
  
  <blockquote>
    <p>[07/27/2016 19:09:53 > 0e1e46: SYS ERR ] System.AggregateException:
    One or more errors occurred. --->
    Kudu.Core.Infrastructure.CommandLineException: Command 'cmd /c
    ""AppName ...' was aborted due to no output nor CPU activity for 121
    seconds. You can increase the SCM_COMMAND_IDLE_TIMEOUT app setting (or
    WEBJOBS_IDLE_TIMEOUT if this is a WebJob) if needed.</p>
  </blockquote>
  
  <p>My code is as follows:- </p>
  
  <pre><code>class Program
  {
      static void Main()
      {
          var host = new JobHost();
          Console.WriteLine("Waiting for operation...");
          host.Call(typeof(Functions).GetMethod("ProcessBalances"));
          Console.WriteLine("Task completed.");
      }
  }
  </code></pre>
  
  <p>The "ProcessBalances" function executes and then the "Task completed." is successfully displayed in the output.</p>
  
  <p>There do not seem to be many actual code examples of a Scheduled web job out there.  Should I be using "Continuous" instead - as there are plenty of examples of those?</p>