Hello, I'm writing a plugin and I was wondering if there was a way to abort an upgrade to the plugin if an error occurred. I'm using the upgrader_pre_install and upgrader_post_install filter to do some work during the update (saving important user-uploaded files to a temporary directory) that would normally get deleted when WordPress updates the plugin.
Is there a way to abort the plugin upgrade process in the upgrader_post_install filter? Or is there a different way I might be able to handle this case?