The machine has to be thoroughly cleaned inside. Only sewing machine oil can be used on sewing machines. It is a much finer grade of oil than other types. WD40, cooking oil, etc. have to be cleaned out of the machine.
If you're taking the machine somewhere to get it re-wired, I would explain the situation to them and ask that they clean and oil the machine for you while it's there.