Confirmation dialog before window close

Signed-off-by: Josef Skladanka <josef.skladanka@gmail.com>