Closing graphics devices