Clean-up prompt and remove unnecessary resources