Fixed cancelling packets causing to close the connection.