First and foremost, you never stop behind another vehicle without giving yourself enough room so you can turn hard right or left to get away from a potential rear end collision. Even if you don't get clear in time, you will be at an angle to an impact, which will reduce the force of impact on your car.
Next, when you are stopping behind another car, with none behind you, you must check your suruondings for where you could go, if needed.