Kill process after time limit.

Need to figure out how to show error message.