fixed missed check for route close