close also the connection on errors
catch every kind of error
log on error
fix error message
For long input, frame it (until 1M)
fix tests