Man frightened son and ex-partner with harassing messages