Add \par before and after the vertbar environment to avoid incorrect behaviour if erroneously used within a paragraph.