make TFTP stop working after shutdown
fix improper error messages to warning
fix PIL Image import
Merge pull request #962 from LipuFei/fixes

Some fixes