Allow to implement destory method in custom authenticators from API > 3.
Call destory on module reload and on application shutdown.