Resolves #1. Fixes issue where executable would not compile.
Exit program when unable to open log file.