Scott Guthrie has a post about capturing the reason for unexpected ASP.NET application shutdowns.

Check it out at http://weblogs.asp.net/scottgu/archive/2005/12/14/433194.aspx