Error handeling for createBG