Warnings and cleanup