Why does the tcp_error exception display instead of my custom exception page?