I tried replicating this issue multiple times but to no avail. I cannot replicate the issue as exactly as you described.
1. First attempt, I tried refining 50 pcs of whitewing suits to safe refine. I didn't get stucked. Nothing worth noting.
2. Second attempt, I tried closing the dialogue box but let the npc continue refining all the white wing suit and then afk.
- After the refining is finished my character cannot move because I closed the dialogue box during the process.
In the first image you'll see in the chat box the dialogue: Any work in progress... this means that a previous interaction with an npc is not properly closed, in short my character is stucked.
After that I logout and all of the things I refined are still there.
3. For my 3rd attempt, I tried logging out during the process. You can see in the image that the npc is in the process of refining the WWS.
Still even after I log off, and log back, the +5 white wing suit is still in my inventory. In fact if it's gone here it shouldn't be considered a bug either as the npc clearly states that we shouldn't log off during the process as it may cause issue.
Again, to summarize I tried replicating the issue but I couldn't replicate it. While we want to fix the bug that you are reporting, we don't even know the exact issue that we need to fix.
Maybe there's a detail that we didn't understand or a detail that you might want to add.