Wrapping jesque end in a try to avoid throwing unnecessary exceptions