[FIX] Adapted the sam/bam module to new stream modul.

`Invalid Record!` is not specific enough and don't we use IOException somewhere else?