added: try-catch statements to handle failed resource interactions