Changed quiet exception to work with .net 4.0