Cleanup error message when no longer under path