@karlnapf its already doing this in cleanup_custom().