form closes right after setting wallpaper