Removed sys.exit() call.

Wtf. It is really bad idea to forcequit in API. Exception is fine, but sys.exit() is completely uncatchable type of event.

I think that ValueError is ok.