set initialized flag to false after stopping simulation