refactoring, call to convert_params moved out from submit_rpc
add wait after kill to make sure connection is dead before we will send new request