Fix error handling
Release v1.0.0.