Restart bash if there are any errors

How is this for a workaround?
This makes it hard to debug if something goes wrong - I'd rather just catch EOF.