Safely open and close transport for client call