missed some error checking, and added a workaround to weird docker event listening bug