make error handling more intelligent
add --no-terminate and --no-terminate-on-error options
bump version to 0.5.0