Catch invalid messages