GROOVY-6779: Groovysh ":purge all" and ":show all" commands fail

catch correct exception type