implements kill REST call in wrapper