Fix closing procedure