A limited partner may withdraw from a limited partnership at the time or upon the occurrence of events specified in writing in the partnership agreement.