Fixed server socket accept exceptions

Fixed server socket accept exceptions