added try/catch around 'changeFeatureBeforeSave' to catch any errors and show a message