Add an timeout function to the notifications

Coding style: Opening curly brace on same line as »else« ;)