parallel.h: Add worker index to exception message.