Added port type error detection after crashes.
Authored by: philsp 2012-05-04
Parent: [r488]
Child: [r490]