catch IndexError on sampling
fix js error reporting for worlds
actually, complain immediately, if connection lost