Fixed IO Error

* Check if Diary folder exists before continuing to print
* Close window after warning message