Though you unknowingly put your son to a potentially dangerous activity ,it seems by god's grace no harm has been done.
Never do it again as vigorous shaking of small kids can lead to serious brain injury
. This condition is called shaken baby syndrome
For more information & explaination please see http://www.dontshake.org/
Hope this informaion is helpful.