Added logic to clear tern server when switching projects