Add some debugging information in case of exception calculating the beam transmission.