Cath all errors in threads

Makes in possible to empty the queue whatsoever happens