Raise error instead of exiting

Exiting with specific codes will be handled over in CLI.
Handle errors and exits in CLI.
Remove expectation on error message

This message is present in the exception that the class #find method can
throw. We shouldn't have expectations for the exceptions since they'll
be handled higher up.