Bump version to 1.1.42-beta7. Fix bug with registering message handlers