Restart bash if there are any errors

How is this for a workaround?
output should probably be `self.bashwrapper.child.before + 'Restarting bash'` - there might be output produced before the shell exits.