Calling publish callback in a separate thread. With this will be pissible to call synchronious calls from publish callback.