Phew that was a close call