Safe Adaptation for Long Term Autonomy and Human-Robot Interaction