Take it easy. It happens, but it is not the end of the world. At least you have your family.

Quickly ask your bosses and colleages to give you reference letters, then start looking for a new one right away.