Buddhism advises you not to implant feelings that you don't really have or avoid feelings that you do have. If you are miserable you are miserable; that is the reality, that is what is happening, so confront that. Look it square in the eye without flinching. When you are having a bad time, examine that experience, observe it mindfully, study the phenomenon and learn its mechanics. The way out of a trap is to study the trap itself, learn how it is built. You do this by taking the thing apart piece by piece. The trap can't trap you if it has been taken to pieces. The result is freedom