Is there any way to prevent this error, flush some memory maybe?
Is it caused by logical coding error? (script runs error free except this)