Not able to reconnect after the first IN-Read exception error

Everything work well until i receive the first error log like this. After that i never be able to re-establish communication with the broker. To be able to do that i must stop and re-start my application.

IN - Read exception
Received packet with invalid Packet Type -mtConnect
IN - Read exception
IN - Read exception'
IN - Read exception
Received packet with invalid Packet Type -mtConnect
Received packet with invalid Packet Type -mtSubscribe