Specified what type of exception is thrown and implements Closeable to
Microphone class.