Displaying popup window when an exception occurs in execute