Fix #2 : Fail if bitstream generation fails