fix exception handling for queued connections (fix #369)