make local client and remote browser connection much less prone to disaster when throwing non-errors

Signed-off-by: Chris Granger <ibdknox@gmail.com>