logger: afterLog run even if not logged
logger: basic level
fix reconnecting
error handling