beatrix: log exceptions during lifecycle

Reported-by: Praveen Agrawal <pkalwar@gmail.com>
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>