Adding in better logging to understand error in last sam files.