added some basic errorhandling and a 10 second delay on the silence counter