Errors thrown by async methods like
connect() and startCall() can also be caught using try/catch. The error event captures asynchronous errors that occur outside of direct method calls.