Simulation of the scrape-off layer plasma during a disruption