exception handling in Acoustid thread