https://bugs.winehq.org/show_bug.cgi?id=49918
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- I think it's closely related to this:
0050:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x800736b7 0050:err:ole:apartment_get_local_server_stream Failed: 0x800736b7
Which already happened before. You shouldn't see these message if you create the prefix first, shutdown, and run your program after.