Fixed the delay when closing out, mandelbrot.cpp