Send an email if status is not OK

Signed-off-by: Kai Blin <kai.blin@biotech.uni-tuebingen.de>