- Modified init/1 to use the module terminate definition instead of
  gen_fsm:terminiate