handle duplicate class definition errors during module classloading