Can narrow the error-handling block to just the `connection.put`, indicating that it's the only source of the errors that need handling.