sim_time.c: refactor error handling

Make all error cases call perror.