This just happened to me last night in the Simulation League hopper on Hockenheim National in the Rain. I entered the pits and it let me manually drive through the pit lane. Once I reached the end it then registered me as in the pits and the AI did a quick 180 and tried to enter the pits in reverse. The game then reset the car but still in AI control which then tried to drive around the track as if I were on Hockenheim Full slamming me into the wall when it turns for the national circuit.
This was the first and only time I have seen this bug.