Terminating a connection instead of returning an exception page