Popups now occur when an exception is thrown. Fixes issue #53.