Add drain signal with imp for unix and winservices