Shitty exception handling.