https security update on close method