Sinking both IOException and InterruptedExceptions, printin the stack trace.