add application and ignore mainThread exception