Remove debug switch used to throw exception when in debug mode.