try increasing maxagents for socket and add stack trace for uncaught exception