From what I understand, the SH command runs in a new shell every time, so you're safe leaving it in a different folder when you disconnect it.