[FIX]change password and dropdb error modal not closing

when trying to dropdb or change password, if rpc call result in error, modal was stuck with an error and could not be closed