[BUGFIX] No proper error when writing to inactive stream