Only write to handle if we could open it