Duplicate question get created on clicking save button multiple times

If Metabase server returns with error while creating question, the popup do not closes and if user clicks on save button again question gets saved twice.