Fixed exit issue.