empty the displayqueue after executing posterror hooks, not before