Currently, there is no way to terminate a Bromelia app instance gracefully, the main loop will be kept executing forever until the parent process is terminated.
Also, if the connection to the peer is lost, no functionality is implemented to restore the connection or terminate the worker process. Thus, this is a reliability issue that limits the usefulness of the library in a production environment.