Fix params reading
Better logging
Catch errors, log them and quit