make sure functions return correctly in external browser connections

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