Coach writes farewell letter to team