Saved by the bell

A situation when you have to do something that you do not want to but suddenly something happens and rescues you from doing it

Examples

It was Sunny who saved me from the bell. I didn’t want to call Mr. White but I had to. When I was dialing his number Sunny came in and said that he had already called him.