Issue was caused by the application code sending signals to the nedit process when it was not expecting it. caused it to segfault.