added try/catch for IOException

If the user wants to see the logs when there are none added yet, this
try/catch will eventually take care of this; in the meantime just prints
stack trace