Support for more toxcore callbacks
Only kill session if defined