Cleanup the shell defines/commands.