added closure to de close sever test