more helpful error messages for BAM file handling

Now the file that does not open correctly will be reported on open failure.