22.02.2013, 09:03
I can't really find the issue but the way I normally fix these issues is to start commenting out small parts of the script and then tests if the script crashes, you will then be able to find out what line it is that does the crash and do appropriate action according to that.

