An officer may be removed at any time, either with or without cause, by the board. An officer may resign at any time upon written notice to the corporation given to the board, the president, or the secretary of the corporation. Any such resignation shall take effect at the date of receipt of such notice or at any other time specified therein. The removal of resignation of an officer shall be without prejudice to the rights: if Foy, of the officer or the corporation under any contract of employment to which the officer is a party.