Almost got caught!!

My dad wasn't suppose to come home and almost caught me and my bf. He had to go hide half naked in the restroom while "I changed" has this have happened to any of you before? How do you handle it?