Debug unknown error

@ransomr 
Please review.
if it is easy to specify the type that is stored in the queue that is preferred.