terminate rest client service 1 phase