Remove unnecessary exception handling. Hopefully fixes build on linux.