Rudimentary error handling

Auditors: eater