No longer exit on an unknown API error.

Changes the exit in the API meta-method to an exception.