causes of terminal agitation