The request to deviate to Tocumen was weather related and no emergency was declared. Just a coincidence that the explosion happened shortly after and it appears that there was no prior warning of a problem and nothing Gary could have done. I suppose the explosion must have been in the cabin for the pilot to have been ejected, we'll have to wait for the final investigation report to see if they were carrying any dangerous goods.