Fixed rather large bug with modules not unloading properly once they exception