Updated code according to pull #4 in liip/liipprocessmanager