Made plugin exit with correct RC.