Don't drop devices on LUA error.  (Fixes #8)

If an error occurs during any device's PrepareHWI or FinalizeHWI, keep the
devices stack that existed at the start of that stage rather than dropping
the remainder of the devices to be processed. Fixes #8.