Properly open&close outHandle to avoid locking