IDIOMS

burn one's bridges

(idiomatic) To destroy one's path, connections, reputation, opportunities, etc., particularly intentionally.

Example:   Even if you are dismissed from a job in the worst way, take care to not burn your bridges with unseemly comments on the way out, since you never know who you will meet again.