Remove warnings when cleaning up.