Catch exception during packet parsing