Remove empty registerCallback() methods.
Replace registerCallback() with a HandshakeComplete event handler.