do not crash on exceptions while adding startup scripts