Deal with stuck Parsoid workers when restarting the service

Change-Id: I8e4a3493ffbdd8e1a5f9838d0f9f59d906de56b3