Fix crash during agent integration. Problem was that algo_init() was not happening because of the local static variable init_done set to 1 in algo_init. Made changes to unset it in algo_deinit.