address initialization order of PosixEnv members and possible race condition in ~PosixEnv() shutdown ... per code review.