make sure we exit immediately if we fail to load the application.

While I'm here describe a more accurate error when it happens.

fix #508