Correctly close file descriptor on failure
Correctly close file descriptor on failure

I realize it probably doesn't matter at all since nobody uses 16bpp BMPs, 
but for the love of God...
embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox