Fixing standard out after exit