[connection] Modified logic so that callback is sent to their respective thread