Prevent double opening.