Remove temporary scene manager when it is not useful anymore.