Exception-safety fixes for 'syncProcess'.