Logic fix for when closing other project buffers upon switching projects