[No reviewer] Use correct error code when terminating user isn't registered

Simple change to use the correct error code when a terminating user isn't registered (meaning that there are no targets to route to).

Fixes #443