Added support for terminating mono Application when uploading a program