use SystemClock.elapsedRealtime() whenever possible.
reset the last location timestamp to 0 when logging stops.
fix shutdown so it tries to record in most cases