Safely instantiate an audio context.