It's also worth noting that he's being investigated by the Parliamentary Standards Committee. Now that he has stepped down as an MP, that investigation would ordinarily be paused (and is from what I can tell). It would be resumed if he won but he gets a while to organise things before he has to face them again.