added try catch block around appsoma_restart