Cleaning up unstable applications