Redirect stderr at the end