Added CLOEXEC flag to opens.