Calling a callback when a thread is initiated is wrong. It will close the connection between the plugin and the script and throws "second callback called" warning