creating close route method on locationManager