A registered agent of a cooperative may resign by filing a written notice of resignation, executed in duplicate, with the commissioner. The commissioner shall immediately mail a copy of it to the cooperative at its registered office. The appointment of the agent terminates 30 days after receipt of the notice by the commissioner.