Add exception type to try-except blocks in hsc module (#7)