Fix save dialog cancel
Handle save failure