error handling in case of timeout in browser thread

Signed-off-by: Marco Milanesio <milanesio.marco@gmail.com>