Fixed shutting down + added a prepareRender method