Fixed custom exception classloading issue