how to avoid staying in bad relationships