added try catch to note delete event