Shouldn't we some how inform the user that there was an error rather than just closing the popup?