fix bug casuing double renders when error pages should be displayed
more socket work