AH-422 Now removing definitions when graphics are shutting down.