I cannot pass null pointer to SafeHandle