Added exception handling when modem does not exists