FIX: deleting window when close.