Fix app:reset task and clean up other tasks