Had the exact same problem with my '94 S500 and it appears that your door is 'timing out.' Here's the site that helped me ALOT and ever since I followed the instructions posted there I had no more problems from any of my doors, or trunk lid. Hope this helps!!
http://www.v12uberalles.com/Closing_Assist_Pump.htm