it happens to me pretty often too.... not every time i get out but i also have learned to close the door by glass
another thing i do when im wearing pants is put my foot on the ground, then touch metal with my leg (its almost like 2nd nature now...) since clothing is an insulator, it reduces the amt. of electricity that gets to your skin and you dont feel it as much