Added assert. Added check for connection request handling