Don't init counter on __init__, fixes 500 error when manually flushes the bucket
Return 500 error instead of raise exception when not in debug mode