Didn’t Caspar Weinberger get into legal trouble over Iran Contra JUST before an important election? That seems to be some sort of precedent.
http://www.washingtonexaminer.com/flashback-clinton-cheered-11th-hour-indictment-that-doomed-bush-reelection/article/2606000