Some memory checks and uncaught exception handling
Script call queue