bnet: catch stoul exceptions