Added a flush command to the end of the main method.
Merge branch 'feature/logger-flush'

* feature/logger-flush:
  Added a flush command to the end of the main method.