Given that this function can "fail", it should return a code indicating that it's done so, and the command infrastructure can return that back to the user.