Add pre and post hooks for uninstall