bsg: fix initialization error handling bugs