Make sure all program output is printed before closing the `gdboutput` handler. Also, made all comparisons against None, proper Null-pointer comparisons (This is much quicker than looking up an object's .__eq__ or .__neq__ method)