Changed logging IOException to the configured logger. Printing stacktrace may not be optimum.