Removes unused 'use' statments, updates exception message