Only open tabs when needed on error, version bump to 0.5.2.