Green screen still allows FTP etc that means you could recover/change skin using command line/config change. Also cash log could tell you what you missing in skin.xml file. Lastly, there is almost no try catch in the code hence no graceful code exit and error handling.