properly deleting the request handlers at daemon shutdown