why not move this line into the try? you can't get to it if assembly.GetTypes() throws anything anyway.