Allowing for closing of GIFs successfully