Added tryCatch to file logging to avoid permissions issues in default shiny-server configuration.