Added attempt methods to Try{...} and then conditionally log Throwables.