Detaching console log observer after fork()