Output critical warning instead of crashing

I would really like to know the cause though.
Fix crash

Should introduce test for that one
Fixed tempbans

Fixes #823. Added test to boot
Fix script tempban problem
SESSION test