wrap save and delete methods in try/catch