Added error option to Stub transport