Add more robust exception checking
Bump version to 0.4.5