Automagically use default-context if none is provided.
More `register-socket!` argument checking.