Move handlers into OSC connected callback.