Refactor expired plot deletion task to better handle async plot clearing