handling the process' state while electing the next