Cleanup the ddl_command_end trigger function