Code: Rescue from Segmentation Fault (#361)

Fixes #361.