The polite art of taking leave
失礼します literally acknowledges a possible breach of courtesy, but it functions naturally when excusing oneself from a room or interaction. You may encounter the expression in offices and at the end of a formal visit. Its value for a traveller is that it closes an exchange respectfully without making a dramatic statement about whether you will meet again.
Leaving before your colleagues
The workplace has its own farewell vocabulary. Someone heading home while others continue working may use お先に失礼します, acknowledging that they are departing first. Colleagues can respond with お疲れさまでした, an acknowledgement of the day’s effort. The exchange is less about saying the same goodbye back and more about recognising what each person has been doing.
A small sound makes a difference
The long vowel in sayōnara and the extended vowel in じゃあ are worth practising. Japanese pronunciation generally gives syllable-like units a more even rhythm than English, so resist stressing one part of a word heavily. The sound cues here are approximations; listening to the entire expression, rather than reading each letter as English, is a better route to a natural farewell.