Added Stop() function to Engine.cs to close the project