aded FatalException.java and made sunjaymain and WPAMaster more robust