Fall detection and avoidance