Added confirm on close

to prevent idiots closing by accident.