defered function calls can be accumulated when gen_server shutdowned repeatedly