#153 close function - pc