Contractions during ultrasound - 33 weeks

Crystal
So I went for a growth scan and while I was getting the ultrasound I started having very painful contractions, not the braxton hicks I've been having. I only had four and they eased by the end if the scan. This freaked me out!! I never had anything like this with my first pregnancy. Luckily my cervix was closed, thick and long still. Any thoughts?