that doesn't happen. Occasionally it will just poof on you though. I THINK it does that when you die with it off screen (out of AI range), but that's not hard to avoid if you set up your AI properly.
Just don't leave the homunculus UP when you're autotrading.