Adding exception handling to the timer function so that it doesn't abort the program in Mono.
Actually incrementing ntime this time.