Nice question, we need to catch that exception and kill the process then, or even better display the error in the browser (another web page).