Fixed Issue #36

Now only one mail per binding is send in case of a scan processing error.

Also fixed a bug where a Scan status is never set to ERROR.